package com.g13.virtualpethospital.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.sql.Time;

/**
 * @Title: TestPaperEntity
 * @Author yyj1205
 * @Package com.g13.virtualpethospital.entity
 * @Date 24/3/2024 19:56
 * @description: 试卷
 */
@ApiModel(description = ": 试卷")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TestPaperEntity {
    /**
     * 试卷标题
     */
    @ApiModelProperty(value = "试卷标题", position = 1)
    private String headline;
    /**
     * 试卷ID
     */
    @ApiModelProperty(value = "试卷ID", position = 2)
    private String paperId;
    /**
     * 问题
     */
    @ApiModelProperty(value = "问题", position = 3)
    private QuestionEntity[] questions;
    /**
     * 试卷总分
     */
    @ApiModelProperty(value = "试卷总分", position = 4)
    private long totalScore;
    /**
     * 考试时间
     */
    @ApiModelProperty(value = "考试最大时间", position = 5)
    private long time;
    /**
     * 试卷各题的分值
     */
    @ApiModelProperty(value = "试卷各题的分值", position = 6)
    private int[] scores;
}
